﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="AMS.Web.MainWebForm.Index" %>
<%@ Register Assembly="VitCode.Web.UI.PaginationGrid" Namespace="VitCode.Web.UI"
    TagPrefix="PaginationGrid" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">

    <title></title>
    <link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet" />

    <script src="../ScriptFiles/JS/Ajax.js" type="text/javascript"></script>

    <style type="text/css">
        body
        {
            margin-left: 5px;
            margin-top: 10px;
            margin-right: 5px;
            margin-bottom: 5px;
        }
        .style3
        {
            width: 80%;
            
             
        }
        hr
        {
            border: 2px #e1eff2 solid;
        }
        td
        {
            font-size: 13px;
            color: #006699;
            font-weight: bold;
        }
        img
        {
            cursor: pointer;
            border: 0px;
        }
        #txtMessage
        {
            font-family: 楷體;
            color: #fab43c;
          
        }
        .tableBg1
        {
            background: #FAFCFF;
            font: 12px Tahoma, Verdana;
            height: 32px;
            padding-left: 6px;
            vertical-align: middle;
            border-bottom: 1px solid #f3f3f3;
            text-align: center;
        }
        .tableBg2
        {
            font: 12px Tahoma, Verdana;
            border-bottom: 1px solid #f3f3f3;
        }
        .style5
        {
            height: 366px;
        }
        .label
        {
            font-family: 楷體;
            color: #fab43c;
            height: 280px;
            width: 215px;
        }
        .GridViewTrItem
        {
        	height:30px;
        }
        
        .GridViewTrAl
        {
        	height:30px;
        	background-image:url(/VitCode_client/PaginationGrid/images/tablebg.png) 
        }
    </style>

    <script type="text/javascript">
        function ChangeRead() {

            document.getElementById("txtMessage").readOnly = false;
            document.getElementById("txtMessage").style.borderWidth = "1px";
            document.getElementById("txtMessage").style.backgroundColor = "#f5fbff";
        }

        function Read() {

            document.getElementById("txtMessage").readOnly = true;
            document.getElementById("txtMessage").style.borderWidth = "0px";
            document.getElementById("txtMessage").style.backgroundColor = "#ffffff";
            var txtValue = escape(document.getElementById("txtMessage").value);
            var mAjax = new Ajax("../SaveMessage.ashx", 1, "txtValue=" + txtValue, CallBack);
            mAjax.post();

        }

        function CallBack(msg) {

        }

        function show() {
            var run_exe = "<OBJECT ID='RUNIT' WIDTH=0 HEIGHT=0 TYPE='application/x-oleobject'";
            run_exe += "CODEBASE='../ScriptFiles/AMS.Inventory.PCClient.exe#version=1,1,1,1'>";
            //這里的**.exe就是我們要運行的程序的網上路徑
            run_exe += "<PARAM NAME='Version' value='65536'>";
            run_exe += "</OBJECT>";
            document.open();
            document.clear();
            document.writeln(run_exe);
            document.close();
        }
       
         
    
    </script>

</head>
<body>
    <form id="Form1" runat="server">
    <table width="99%" style="border: 1px solid #A8CFEB; margin-top: 2px;">
        <tr>
            <td style="padding-left: 14px; font-size: 14px;">
                歡迎登錄AMS-資產管理系統
            </td>
         <td align="right">
            在線人數:<asp:Label ID="labOnLineCount" runat="server" CssClass="label"></asp:Label>&nbsp;
            當前用戶: <asp:Label ID="labLoginUser" runat="server" Text="admin" CssClass="label"></asp:Label>
         </td>
        </tr>
    </table>
    <table width="99%" style="border: 1px solid #A8CFEB; margin-top: 4px;">
        <tr  valign="top">
            <td class="style3" >
                     <PaginationGrid:PaginationGrid ID="ListGridInfo" runat="server" GridSelectedItemStyle_BackColor="SkyBlue" 
                    AutoGenerateColumns="False" AutoSort="True" InitPageSize="15"  TrAlClassName="GridViewTrAl" TrItemClassName="GridViewTrItem" > 
                     <Columns>
                        <PaginationGrid:PaginationGridBoundColumn DataField="Department" HeaderText="部門">
                            </PaginationGrid:PaginationGridBoundColumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="TotalCount" HeaderText="總量">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="Consuming" HeaderText="領用">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="Maintain" HeaderText="維修">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="Borrow" HeaderText="借用">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="Reback" HeaderText="返還">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="BackPosition" HeaderText="退倉">
                            </PaginationGrid:paginationgridboundcolumn>
                              <PaginationGrid:paginationgridboundcolumn DataField="Allocation" HeaderText="調撥">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="IsUsed" HeaderText="啟用">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="IsIdleness" HeaderText="停用">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="Scrap" HeaderText="報廢">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="Damage" HeaderText="損毀">
                            </PaginationGrid:paginationgridboundcolumn>
                            </Columns>
                </PaginationGrid:PaginationGrid>
            </td>
           
        </tr>
        
    </table>
    
    </form>
</body>
</html>
